package com.union.session;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.union.dao.CategoryDAO;
import com.union.dao.FeeDAO;
import com.union.dao.PCDAO;
import com.union.dao.PersonDAO;
import com.union.dao.PersoninfoDAO;

public class BaseBean {
//	String [] strs = {"applicationContext-resources.xml","applicationContext.xml"};
//	String [] strs = {"applicationContext.xml"};
//	public ApplicationContext ctx = new ClassPathXmlApplicationContext(strs);
	
	ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
	
	public PersonDAO personDAO = PersonDAO.getFromApplicationContext(ctx);
	
	public PersoninfoDAO personinfoDAO = PersoninfoDAO.getFromApplicationContext(ctx);
	
	public FeeDAO feeDAO = FeeDAO.getFromApplicationContext(ctx);
	
	public PCDAO pcDAO = PCDAO.getFromApplicationContext(ctx);
	
	public CategoryDAO categoryDAO = CategoryDAO.getFromApplicationContext(ctx);
}
